package com.dynabook.ems.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 工单样机批量审批请求DTO
 *
 * @author system
 * @date 2025-01-28
 */
@Data
@ApiModel("工单样机批量审批请求")
public class WorkOrderSampleBatchApprovalRequest {

    @ApiModelProperty(value = "申请ID列表", required = true)
    @NotEmpty(message = "申请ID列表不能为空")
    private List<String> emsRequestIds;

    @ApiModelProperty(value = "操作类型：agree-同意，reject-拒绝", required = true)
    @NotBlank(message = "操作类型不能为空")
    private String action;

    /**
     * 拒绝原因（拒绝时可选）
     */
    @ApiModelProperty(value = "拒绝原因")
    @Size(max = 500, message = "拒绝原因不能超过500个字符")
    private String rejectReason;


}